<div class="relay well span3" style="margin-left: 2px;text-align:center">
	<div class="row">
		<div class="span3"> <h3> <?=$element->name?> </h3> </div>
		
		<div class="span3" style="">
			<select name="switch_<?=$element->id?>" data-element="<?=$element->id?>" class="switch" data-role="slider" 
				onChange="saveCommandeRelay('<?=$element->id?>');">
				<option value="0" <?=($element->current_value == 0) ? "selected=true" : ""?>>Off</option>
				<option value="1" <?=($element->current_value > 0) ? "selected=true" : ""?>>On</option>
			</select>
		</div>		
	</div>
</div>